package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberAccountLogMapper;
import com.whq.entity.MemberAccountLog;
import com.whq.service.MemberAccountLogService;

@Service(value = "tdMemberAccountLogService")
public class MemberAccountLogServiceImpl implements MemberAccountLogService {

    @Autowired
    private MemberAccountLogMapper<MemberAccountLog>tdMemberAccountLogMapper;
    
    @Override
    public Integer insertSelective(MemberAccountLog tdMemberAccountLog) throws Exception {
           return this.tdMemberAccountLogMapper.insertSelective(tdMemberAccountLog);
        }

    @Override
    public Integer insertBatch(List<MemberAccountLog> tdMemberAccountLog) throws Exception {
           return this.tdMemberAccountLogMapper.insertBatch(tdMemberAccountLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemberAccountLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemberAccountLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemberAccountLog tdMemberAccountLog) {
           return this.tdMemberAccountLogMapper.updateByPrimaryKeySelective(tdMemberAccountLog);
    }

    @Override
    public MemberAccountLog findById(Object id) {
           return (MemberAccountLog) this.tdMemberAccountLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemberAccountLog> selectByCondition(MemberAccountLog tdMemberAccountLog) {
           return (List<MemberAccountLog>) this.tdMemberAccountLogMapper.selectByCondition(tdMemberAccountLog);
    }

    @Override
    public Integer selectCountByCondition(MemberAccountLog tdMemberAccountLog) {
           return  this.tdMemberAccountLogMapper.selectCountByCondition(tdMemberAccountLog);
    }

}
